#include "mainwindow.h"
#include "ui_mainwindow.h"

#define FULL_ENABLE


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);
#ifdef FULL_ENABLE
    this->setWindowState( Qt::WindowFullScreen );
#endif
    ui->statusBar->showMessage( "Simusoccer 0.0.1a started." );
    ui->actFullScreen->setChecked( true );
    ui->central_frame->setStyleSheet( "background-image: url(images/soccer_field.png); background-repeat: no-repeat;" );
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_actClose_triggered()
{
    this->close();
}

void MainWindow::on_actFullScreen_triggered( bool checked )
{
    ( checked ) ? this->showFullScreen() : this->showMaximized();
}
